<template>
  <p class="p_right" v-if="!validatenull(value)">
    <span v-for="(v,i) in value.split(',')">
      <span class='square'>{{v}}</span> 
      <span v-if="i<value.split(',').length-1">&nbsp;/&nbsp;</span>
    </span>
  </p>
</template>
<script>
export default {
    name: "selectItem",
    props: ['selectValue'],
    data() {
      return {
        value: this.selectValue
      }
    },
    watch: {
      selectValue(newVal) {
        this.value=newVal;
      }
    }
  }
  </script>